/**
 * replace-loader
 *  "world" => "${text}"
 */

const loaderUtils = require("loader-utils");

module.exports = function (source, map, meta) {
	const options = loaderUtils.getOptions(this);
	return source.replace(/world/g, options.text);
};
